package org.nyt.medicalstore.service;

import org.apache.coyote.BadRequestException;
import org.nyt.medicalstore.model.Drug;
import org.nyt.medicalstore.model.SymptomDrugRelation;

import java.util.List;

public interface SymptomDrugRelationService {
    //根据症状获取相关药品
    public List<Drug> getRelatedDrugs(Long symptomId);
    //添加症状和药品的关系
    public SymptomDrugRelation addSymptomDrugRelation(Long symptomId, Long drugId, Double confidence) throws BadRequestException;
    //删除症状和药品的关系
    public void deleteSymptomDrugRelation(Long symptomId, Long drugId) throws BadRequestException;
}
